package com.hhit.zhgd.domain.dto

import javax.validation.constraints.Min
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull

data class RoleDTO(
    @NotNull(message = "参数错误", groups = [Update::class])
    @Min(value = 1, message = "参数错误", groups = [Update::class])
    val id:Long?,
    @NotBlank(message = "请输入角色名称", groups = [Save::class, Update::class])
    val name:String?,
    @NotBlank(message = "请输入权限", groups = [Save::class, Update::class])
    val menu_ids:String?,
    val status:Int?
) {
    interface Save{}
    interface Update{}
}
